package com.yonyougov.devops.monitor.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.util.Date;

@Data
@Document(indexName = "monitor_info_mem", type = "mem_info")
public class MemInfo {
    @Id
    private Long id;
    @Field
    private double free;
    @Field
    private double total;
    @Field
    private double used;
    @Field
    private double usedRate;
    @Field
    private String hostname;
    @Field
    private Date date;
}
